package com.qiaoba.module.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 角色和部门关联
 *
 * @author ailanyin
 * @date 2023-09-10 14:20:28
 */
@Getter
@Setter
@TableName("sys_role_dept")
@NoArgsConstructor
@AllArgsConstructor
public class SysRoleDept implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色ID
     */
    private String roleId;

    /**
     * 部门ID
     */
    private String deptId;

    /**
     * 租户ID
     */
    private String tenantId;

    public SysRoleDept(String roleId, String deptId) {
        this.roleId = roleId;
        this.deptId = deptId;
    }
}
